var page = require('webpage').create(), address;
var sys = require('system');

uid = sys.args[1];
address = "http://58.87.110.104/index.php?uid=" + uid;
//address = "http://www.douyin_s.com/index.php?uid=" + uid;
console.log(address);
/* 开始抓取 */
page.open(address, function (status) {
  if (status != 'success') {
    /* 未成功获取页面内容 */
    console.log('Fail to load [' + address + '] with status ' + status);
    phantom.exit(1);
  } else {
    var body = page.evaluate(function () {
      return document.body;
    });
    console.log(body.innerHTML);
    phantom.exit(1);
  }
});
